package com.example.service;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.entity.Actiontype;
import com.example.entity.Filetype;
import com.example.mapper.ActiontypeMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mapper.FiletypeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author admin
 * @since 2021-06-01
 */
@Service
public class ActiontypeService extends ServiceImpl<ActiontypeMapper, Actiontype> implements IService<Actiontype> {
    @Resource
    private  ActiontypeMapper ationtypeMapper;

    public  Actiontype getActiontype(String name) {
        Actiontype one = getOne((Wrappers.< Actiontype>lambdaQuery().eq(Actiontype::getActiontype,name)));
        return one;
    }
}
